<?php


namespace App\Services\WechatHandler;

use App\Facades\EasyWechat;
use App\Models\WxMpList;
use App\Models\WxMpOpenAuthorizer;
use App\Services\WxMp\WxMpListService;

/**
 * Class Unauthorized.
 *
 * @author mingyoung <mingyoungcheung@gmail.com>
 */
class OpenUnauthorizedHandler extends BaseEventHandler
{
    /**
     * {@inheritdoc}.
     */
    public function handle($payload = null)
    {
        //开放平台授权取消
        (new \App\Services\WxMp\WxMpListService($this->appid))->openAuthorizerCancel($payload['AuthorizerAppid']);
    }
}
